import request from '@/utils/request'

// 查询利率曲线设置
export function getIrCrvSetList(query) {
  return request({
    url: '/marketdata/irCurveStrip/queryIrCurveByPage.action',
    method: 'get',
    params: query
  })
}

// 新增利率曲线设置
export function addIrcCurveSet(data) {
  return request({
    url: '/marketdata/irCurveStrip/insertIrCurve.action',
    method: 'post',
    params: data
  })
}

// 修改利率曲线设置
export function uptIrcCurveSet(data) {
  return request({
    url: '/marketdata/irCurveStrip/updateIrCurve.action',
    method: 'put',
    params: data
  })
}

// 删除利率曲线设置
export function delIrcCurveSet(data) {
  return request({
    url: '/marketdata/irCurveStrip/deleteIrCurve.action',
    method: 'put',
    params: data
  })
}


//查询当前登录用户的有权限的部门下的权限情况
export function listAllocateUser(query){
  return request({
    url: '/system/user/listIrCurveAllocateUser',
    method: 'get',
    params: query
  })
}

//授权
export function updateUserAuthority(params) {
  return request({
    url: '/marketdata/irCurveStrip/updateCurveUserAuthority.action',
    method: 'post',
    data: params
  })
}
